package com.itheima.service.Impl;


import com.itheima.dao.SetmealMapper;
import com.itheima.pojo.Setmeal;
import com.itheima.service.SetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SetmealServiceImpl implements SetmealService {
	@Autowired
	private SetmealMapper setmealMapper;

	/**
	 * '
	 * 获取套餐数据
	 *
	 * @return
	 */
	@Override
	public List<Setmeal> getSetmeal() {

		return setmealMapper.getSetmeal();
	}

	/**
	 * 根据套餐id查询套餐数据
	 *
	 * @param id
	 * @return
	 */
	@Override
	public Setmeal findById(Integer id) {
		Setmeal setmeal = setmealMapper.findById(id);
		return setmeal;
	}
}
